import { ResPage, DeviceVc, ResultData } from "@/api/interface/index";
import http from "@/api";

/**
 * @name 电压电流源管理模块
 */
// 获取电压电流源列表
export const getDeviceVcList = (params: DeviceVc.ReqDeviceVcParams) => {
  return http.post<ResPage<DeviceVc.ResDeviceVcList>>(`/device/vc/query`, params);
};
// 获取电压电流源详情
export const getDeviceVcDtl = (params: { deviceId: string }) => {
  return http.post<ResultData>(`/device/vc/detail`, params);
};
// 新增电压电流源
export const addDeviceVc = (params = {}) => {
  return http.post(`/device/vc/add`, params);
};
// 编辑电压电流源
export const editDeviceVc = (params: { vcId: string }) => {
  return http.post(`/device/vc/modify`, params);
};

// 删除电压电流源
export const deleteDeviceVc = (params: { vcList: { vcId: string }[] }) => {
  return http.post(`/device/vc/remove`, params);
};
